-- GENERATED SPELL FOR [Boneflayer Ghoul] --


function spell0_7347(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7347', 666, 1)
end

function Sorts_7347(pUnit, Event)
local choix_sorts_7347 = math.random(0, 0)
if choix_sorts_7347 == 0 then
pUnit:RegisterEvent('spell0_7347', 1, 1)
end
end

function mob7347_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7347', math.random(1500, 3000), 1)
end

function mob7347_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7347_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7347_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7347, 1, 'mob7347_Action')
RegisterUnitEvent(7347, 2, 'mob7347_Leave')
RegisterUnitEvent(7347, 3, 'mob7347_Kill')
RegisterUnitEvent(7347, 4, 'mob7347_Die')
